package com.woniu.pojo;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;

import java.util.Date;

@Data
@TableName(value = "t_user") //指定表名
public class User {
    @TableId(value = "id"  ,type = IdType.AUTO) //指定为主键
    private Integer id;
    @TableField(value = "name")//指定对应到数据库
    private String name;
    private Integer age;
    private String email;
    @TableField(fill = FieldFill.INSERT)
    private Date createTime;
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;
    @TableLogic
    private Integer deleted;

}
